import req from '@/utils/request';
import * as URL from '@/constants/api';

// 获取用户自己的信息
export function getUserMsg() {
  return req({
    url: URL.USER, 
  })
  .then(res => res.data.data);
}
// 获取用户个人资料
export function getUserInfo() {
  return req({
    url: URL.USER_INFO, 
  })
  .then(res => res.data.data);
}
